package com.liankuan.console.exception;


import com.liankuan.console.common.ResultEnum;

/**
 * @author **
 */
public class ServiceException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private int errorCode;

    public ServiceException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.errorCode = resultEnum.getState();
    }

    int getErrorCode() {
        return this.errorCode;
    }

}
